/******************************************************************************
 * @File name   :      ICouponBatchService.java
 *
 * @Author      :      JIZHANGS
 *
 * @Date        :      Sep 8, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2015 Capgemini, Inc. All  Rights Reserved.
 * This software is published under the terms of the Capgemini Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * Sep 8, 2015 3:38:41 PM        JIZHANGS     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.coupon.service;

import java.util.List;

import com.cap.bts.crmdp.dealer.coupon.domain.CouponEligibility;
import com.cap.bts.crmdp.dealer.coupon.dto.CouponEligibilityDto;
import com.cap.bts.framework.common.exception.AppException;
import com.cap.bts.framework.common.service.IBaseService;

/**
 * 优惠券活动批次
 */
public interface ICouponEligibilityService extends IBaseService {

	/**
	 * 
	 */
	public List<CouponEligibility> getCouponEligibilityList(CouponEligibilityDto couponEligibilityDto)
			throws AppException;

	/**
	 *  保存优惠券的适用范围信息
	 * 
	 */
	public void save(CouponEligibility couponEligibility) throws AppException;

	/**
	 * 
	 */
	public boolean removeCouponEligibilityInfo(Long  id) throws AppException;
	
	public CouponEligibility get(Long  id) throws AppException;

	/**
	 * 
	 */
	public CouponEligibility getCouponEligibilityInfoByCouponDefId(CouponEligibilityDto dto) throws AppException;
	
	public boolean checkeApplicableByDealerIdAndTicketId(Long dealerId, Long ticketId) throws AppException;
	
}
